package com.anpy.security;

import com.anpy.common.exception.ExceptionResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/user")
@RestController
public class UserController{

    @GetMapping("/test")
    public void test(){
        ExceptionResponse.ERROR.assertNotEmpty("","不能为空");
        ExceptionResponse.ERROR.newException("sss");
//        ExceptionResponse.assertError("test");
    }

}
